﻿<%@ Page Title="Create New Account" Language="C#" MasterPageFile="Layout.master"
    AutoEventWireup="true" CodeFile="NewAccount.aspx.cs" Inherits="CreateNewAccount"
    Buffer="true" Theme="Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolder1" runat="Server">
    <div style="font-size: large">
        Create New Account
    </div>
    <br />
    <div>
        <asp:Literal ID="ltMsg" runat="server" />
    </div>
    <br />
    <div>
        <fieldset style="padding: 10px">
            <legend>New User Account Creation:</legend>
            <table>
                <tr>
                    <td>
                        <strong>UserName:</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserName" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>First Name:</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtFirstName" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Last Name:</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtLastName" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Display Name:</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtDisplayName" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Password:</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Confirm Password:</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password" />
                        <asp:CompareValidator ID="valConfirmPassword" runat="server" Type="String" Operator="Equal"
                            Display="Dynamic" ControlToValidate="txtConfirmPassword" ControlToCompare="txtPassword"
                            ErrorMessage="Password not Matching" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Date of Birth:</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtDOB" runat="server" Text="dd/mm/yyyy" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>E-Mail Address:</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtEMailAddr" runat="server" /><asp:RegularExpressionValidator ID="valEmailAddr"
                            runat="server" SetFocusOnError="true" Display="Dynamic" ControlToValidate="txtEmailAddr"
                            ErrorMessage="Not a valid format" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Secret Question:</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtQuestion" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Secret Answer:</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtAnswer" runat="server" TextMode="Password" />
                    </td>
                </tr>
            </table>
            <hr />
            <asp:Image ID="imgCaptcha" runat="server" ImageUrl="~/Handler.ashx" />
            <br />
            <asp:TextBox ID="txtCaptchaCode" runat="server" /><br />
            <hr />
            <asp:Button ID="btnSubmit" runat="server" Text="Create Account" OnClick="btnSubmit_Click" />&nbsp;<asp:Button
                ID="btnReset" runat="server" Text="Reset" /><br />
        </fieldset>
    </div>
</asp:Content>
